package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_SO_CONFIG"
 *     
*/
public class CcpSoConfig implements Serializable {

    /** identifier field */
    private String cscGuid;

    /** nullable persistent field */
    private String argCode;

    /** nullable persistent field */
    private String argName;

    /** nullable persistent field */
    private String argValue;

    /** nullable persistent field */
    private String inputType;

    /** nullable persistent field */
    private String dicCode;

    /** nullable persistent field */
    private String argDesc;

    /** nullable persistent field */
    private String argOrder;

    /** nullable persistent field */
    private String argType;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public CcpSoConfig(String cscGuid, String argCode, String argName, String argValue, String inputType, String dicCode, String argDesc, String argOrder, String argType, String reserved1, String reserved2, String reserved3) {
        this.cscGuid = cscGuid;
        this.argCode = argCode;
        this.argName = argName;
        this.argValue = argValue;
        this.inputType = inputType;
        this.dicCode = dicCode;
        this.argDesc = argDesc;
        this.argOrder = argOrder;
        this.argType = argType;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public CcpSoConfig() {
    }

    /** minimal constructor */
    public CcpSoConfig(String cscGuid) {
        this.cscGuid = cscGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CSC_GUID"
     *         
     */
    public String getCscGuid() {
        return this.cscGuid;
    }

    public void setCscGuid(String cscGuid) {
        this.cscGuid = cscGuid;
    }

    /** 
     *            @hibernate.property
     *             column="ARG_CODE"
     *             length="10"
     *         
     */
    public String getArgCode() {
        return this.argCode;
    }

    public void setArgCode(String argCode) {
        this.argCode = argCode;
    }

    /** 
     *            @hibernate.property
     *             column="ARG_NAME"
     *             length="50"
     *         
     */
    public String getArgName() {
        return this.argName;
    }

    public void setArgName(String argName) {
        this.argName = argName;
    }

    /** 
     *            @hibernate.property
     *             column="ARG_VALUE"
     *             length="2000"
     *         
     */
    public String getArgValue() {
        return this.argValue;
    }

    public void setArgValue(String argValue) {
        this.argValue = argValue;
    }

    /** 
     *            @hibernate.property
     *             column="INPUT_TYPE"
     *             length="2"
     *         
     */
    public String getInputType() {
        return this.inputType;
    }

    public void setInputType(String inputType) {
        this.inputType = inputType;
    }

    /** 
     *            @hibernate.property
     *             column="DIC_CODE"
     *             length="50"
     *         
     */
    public String getDicCode() {
        return this.dicCode;
    }

    public void setDicCode(String dicCode) {
        this.dicCode = dicCode;
    }

    /** 
     *            @hibernate.property
     *             column="ARG_DESC"
     *             length="200"
     *         
     */
    public String getArgDesc() {
        return this.argDesc;
    }

    public void setArgDesc(String argDesc) {
        this.argDesc = argDesc;
    }

    /** 
     *            @hibernate.property
     *             column="ARG_ORDER"
     *             length="10"
     *         
     */
    public String getArgOrder() {
        return this.argOrder;
    }

    public void setArgOrder(String argOrder) {
        this.argOrder = argOrder;
    }

    /** 
     *            @hibernate.property
     *             column="ARG_TYPE"
     *             length="32"
     *         
     */
    public String getArgType() {
        return this.argType;
    }

    public void setArgType(String argType) {
        this.argType = argType;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="200"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="200"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="200"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cscGuid", getCscGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpSoConfig) ) return false;
        CcpSoConfig castOther = (CcpSoConfig) other;
        return new EqualsBuilder()
            .append(this.getCscGuid(), castOther.getCscGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCscGuid())
            .toHashCode();
    }

}
